package com.yuanfeng.userms.controller;


import com.yuanfeng.commoms.dto.PageUserTokenBeanDTO;
import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @ClassName UserPlusOrderController
 * @Description
 * @Author cyp
 * @Date 2023-07-04 09:36:31
 * @Version 1.0
 **/
@RestController
@RequestMapping("user/plusInfoOrder")
public class UserPlusOrderController extends BaseController {
    /**
     * 查询会员plus充值记录
     * @param pageUserTokenBeanDTO
     * @return
     */
    @PostMapping("/get")
    public ResponseResult get(@RequestBody PageUserTokenBeanDTO pageUserTokenBeanDTO) {
        return userPlusOrderService.get(pageUserTokenBeanDTO);
    }
    /**
     *会员充值列表导出
     * @param map
     * @return
     */
    @PostMapping("/exp")
    public ResponseResult exp(@RequestBody Map<String, Object> map) {
        ResponseResult result=userPlusOrderService.exp(map);
        return result;
    }

    /**
     * 会员充值列表查询
     * @param map
     * @return
     */
    @PostMapping("/list")
    public ResponseResult list(@RequestBody Map<String, Object> map) {
        ResponseResult result = userPlusOrderService.list(map);
        return result;
    }
}
